package com.spsy.pojo;

import com.baomidou.mybatisplus.core.metadata.OrderItem;
import lombok.Data;

import java.util.Collection;
import java.util.List;

/**
 * @Author: Sokai
 * @Date: 2024/10/24 08:01
 * @Description:
 **/
@Data
public class Order {
    private Integer id;
    private Integer customerId;
    private List<OrderItem> orderItems;

    private Integer stauts; // 5- 已完成， 0-未完成

    public Order(int id, int customerId, List<com.spsy.pojo.OrderItem> orderItems1, int stauts) {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public Collection<? extends com.spsy.pojo.OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }

    public Integer getStauts() {
        return stauts;
    }

    public void setStauts(Integer stauts) {
        this.stauts = stauts;
    }

    public Order(Integer id, Integer customerId, List<OrderItem> orderItems, Integer stauts) {
        this.id = id;
        this.customerId = customerId;
        this.orderItems = orderItems;
        this.stauts = stauts;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", orderItems=" + orderItems +
                ", stauts=" + stauts +
                '}';
    }
}
